import React from 'react'
import {Badge, Table} from 'antd'


const ChildTable = (i) => {

  const columns = [
    {title: '序号', dataIndex: 'index', key: 'index', render: (v, r, i) => (i + 1)},
    {title: '归属员工', dataIndex: 'date', key: 'date'},
    {title: '部门', dataIndex: 'date', key: 'date'},
    {title: '敏感类型', dataIndex: 'name', key: 'name'},
    {title: '操作时间', key: 'state', render: () => <span><Badge status="success"/>Finished</span>},
  ]

  const data = []
  for (let i = 0; i < 3; ++i) {
    data.push({
      key: i,
      date: '2014-12-24 23:12:00',
      name: 'This is production name',
      upgradeNum: 'Upgraded: 56',
    })
  }

  return (
    <Table
      columns={columns}
      dataSource={data}
      simple
    />
  )
}

export default ChildTable
